package com.it.system.course_service.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.system.educommonapi.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 查询所有课程
     * @return 课程列表
     */
    List<Course> selectAllCourse();

    /**
     * 根据ID查询课程详情
     * @param id 课程ID
     * @return 课程详情
     */
    Course selectCourseById(long id);

}
